// Learn cc.Class:
//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
// Learn Attribute:
//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html

var privateString = `1.隐私说明
本应用尊重并保护所有使用服务用户的个人隐私权。为了给您提供更准确、更有个性化的服务，本应用会按照本隐私权政策的规定使用和披露您的个人信息。但本应用将以高度的勤勉、审慎义务对待这些信息。除本隐私权政策另有规定外，在未征得您事先许可的情况下，本应用不会将这些信息对外披露或向第三方提供。本应用会不时更新本隐私权政策。 您在同意本应用服务使用协议之时，即视为您已经同意本隐私权政策全部内容。本隐私权政策属于本应用服务使用协议不可分割的一部分。

2.接受服务条款的能力
您已确定您已达到十三岁或独立于监护人并且已获得父母或监护人的法律许可，并且完全有能力签署并遵守条款， 义务，声明和保证。

3.转移
您不得根据服务条款及其条款转让或授予所有权利和许可，但我们可以不受任何限制地自由转让。

4.“隐私政策”的实施
我们会定期检查隐私政策的实施情况。如果您对我们的隐私政策有任何问题或建议， 请与我们联系。

1. Privacy statement
This app respects and protects the privacy of all users who use the service. In order to provide you with more accurate and personalized services, this app will use and disclose your personal information in accordance with this Privacy Policy. However, this application will treat this information with a high degree of diligence and prudence. Except as otherwise provided in this Privacy Policy, this application will not disclose or provide this information to third parties without your prior permission. This app will update this privacy policy from time to time. By agreeing to this Application Services Use Agreement, you are deemed to have agreed to the entire content of this Privacy Policy. This Privacy Policy is an integral part of this Application Service Agreement.

2. Ability to accept the terms of service
You have determined that you are 13 years of age or independent of your guardian and have obtained legal permission from your parent or guardian and are fully capable of signing and complying with the terms, obligations, representations and warranties.

3. Transfer
You may not assign or grant all rights and licenses in accordance with the Terms of Service and its terms, but we may transfer them freely without restriction.

4. Implementation of the "Privacy Policy"
We regularly review the implementation of our privacy policy. If you have any questions or suggestions about our privacy policy, please contact us.`;

cc.Class({
    extends: cc.Component,

    properties: {
        // foo: {
        //     // ATTRIBUTES:
        //     default: null,        // The default value will be used only when the component attaching
        //                           // to a node for the first time
        //     type: cc.SpriteFrame, // optional, default is typeof default
        //     serializable: true,   // optional, default is true
        // },
        // bar: {
        //     get () {
        //         return this._bar;
        //     },
        //     set (value) {
        //         this._bar = value;
        //     }
        // },

        textNode:{
            default: null,
            type: cc.Node
        }
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start () {
        var label = this.textNode.getComponent(cc.Label);
        label.string = privateString;
    },

    onAgree(){
        this.node.destroy();
        cc.sys.localStorage.setItem("readmeYet", true);
        cc.director.loadScene("match");
    }

    // update (dt) {},
});

